
<script>
$(function(){
  $("div.holder").jPages({
    containerID : "itemContainer"
  });

});
</script>
<body>
<div class="main-content" id="main-content">
	<div class="sub-content">
		<div class="top-header products">
			<div class="top_header_title">
				<h1>Users List</h1>
			</div>
			<div class="product_list_details">
				<a href="/admin/add-user-previous"><input type="button" value="Add Users" /></a>
			</div>
		</div>
		<? if(count($data)!=0){?>
		<div class="product_table">		
			<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr class="bg_header">
					<td width="10%" align="center">S.NO</td>
					<td width="16%" align="center">Company Name</td>
					<td  width="10%" align="left">Status</td>
					<td  width="20%" align="center">Email</td>
					<td  width="18%" align="center">Phone</td>
					<td  width="15%" align="center">Action</td>
				</tr>
			</table>
			<ul id="itemContainer">
			<?php $cnt=1;foreach($data as $key=>$userdata){ ?>
			   <li><table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td align="center" width="10%" ><?php echo $cnt; ?></td>
					<td width="16%" align="center" ><?php echo $userdata->company_name; ?></td>
					<td  width="10%" align="left"><?php if($userdata->u_status=='0'){echo 'Pending';}else if($userdata->u_status=='1'){ echo 'Active';}else if($userdata->u_status=='2'){ echo 'IN Active';}?></td>
					<td width="20%" align="center"><?php echo $userdata->email;?></td>
					<td width="18%" align="center"><?php echo $userdata->phone;?></td>
					<td width="15%" align="center">
					<a href="/admin/add-user-previous?user=<? echo $userdata->user_id?>"><img title="Edit" src="<?php echo $this->basePath() ?>/images/edit.png" /></a>&nbsp;&nbsp;					
					<a  href="/admin/delete?user=<? echo $userdata->user_id?>"><img title="Delete" src="<?php echo $this->basePath() ?>/images/delete.png" /></a>&nbsp;&nbsp;					
					<a  href="/admin/viewUser?user=<? echo $userdata->user_id?>"><img title="view" src="<?php echo $this->basePath() ?>/images/edit.png" /></a>
					</td>
				</tr></table>
				</li>
				<?php $cnt++;} ?>
			</ul>			
		</div>
		<div class="page_nav">
			<div class="holder"></div>
		</div>
		<?}else{?>
			<div class="product_table">	
				There is no data.....
			</div>
		<?}?>
	</div>
</div> 
